// 重构计费数据, 分离车辆和计费信息
export default (ctx, next) =>{

    let { jqCheckData, syCheckData, quotations} = ctx.params;
    
    let chargingCode = undefined;
    
    if( jqCheckData  || syCheckData){
        chargingCode = {jqCheckData, syCheckData}
    }   

    ctx.params = {
        quotations,
        chargingCode
    }
    
    next()
}